<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="Page.Page"%>
<%@ page import="java.util.*"%>
<%@ page import="Search.Search"%>
<%@ page import="java.sql.*"%>

<%
	Search Search = new Search();
	ResultSet Gridrs = Search.SearchGridKind();
	ResultSet Rovrs = Search.SearchRoverKind();
%>
<html>
	<head>
		<title>搜索商品</title>
		<script type="text/javascript" src="../js/jquery.js">
</script>
<script type="text/javascript">
$(document).ready(function(){
	var value = $('[name=SelOrderWay]').val();
	$.ajax({
		type : "get",
		cache : false,
		url : "search_ajax.jsp?type=" + value,
		dataType : "html",
		success : function(data){
			$('[name=SelOrderWayB]').html(data);
		}
	});
	$('[name=SelOrderWay]').change(function(){
			var value = $('[name=SelOrderWay]').val();
			$.ajax({
				type : "get",
				cache : false,
				url : "search_ajax.jsp?type=" + value,
				dataType : "html",
				success : function(data){
					$('[name=SelOrderWayB]').html(data);
				}
			});
	});
})
</script>
	</head>
	<body>
		<form name="From1" method="POST" action="SearchOrder.jsp"
			onsubmit="javaScript: return validate();">
			<table border="0" width="100%" cellspacing="1" bgColor="#cccccc"
				valign=center>
				<tr>
					<td width='111'>
						<select size="1" name="SelOrderWay" align=center>
							<option value="1">
								格子铺
							</option>
							<option value="2">
								流动站
							</option>
						</select>
					</td>
					<td width='211'>
						<select size="1" name="SelOrderWayB" align=center>
						</select>
					</td>
					<td>
						<input type="text" name="value" size="20" maxlength="20"
							value=<%=request.getParameter("value")%>>
					</td>
					<td width="20%" colspan="2" align=center>
						<input type="submit" value="搜索" name="submit">
					</td>
				</tr>
			</table>
		</form>
		</font>
		</span>
	</body>
</html>
